package com.cmc.cloud.cmclink.doc.api.document;

import com.cmc.cloud.cmclink.doc.api.document.rep.BlnoFobReqDto;
import com.cmc.cloud.cmclink.doc.api.document.rep.BlnoFobRespDto;
import com.cmc.cloud.cmclink.doc.api.document.rep.BlnoNumericalContainerRespDto;
import com.cmc.cloud.cmclink.doc.service.impl.si.BlnoQueryServiceImpl;
import com.cmes.framework.common.pojo.CommonResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.Valid;


/**
 * SI信息创建
 *
 * @author stq
 * @date 2025/7/7
 */
@Slf4j
@RestController
@Valid
public class SiQueryApiImpl implements SiQueryApi {

    @Resource
    private BlnoQueryServiceImpl blnoQueryService;

    @Override
    public CommonResult<BlnoFobRespDto> queryFobInfo(@Valid @RequestBody BlnoFobReqDto reqVo) {
        return CommonResult.success(blnoQueryService.queryFobInfo(reqVo));
    }

    @Override
    public CommonResult<BlnoNumericalContainerRespDto> queryNumericalContainerListInfo(@Valid @RequestBody BlnoFobReqDto reqVo) {
        return CommonResult.success(blnoQueryService.queryNumericalContainerListInfo(reqVo));
    }

}





